//
//  VOHMVPlayViewController.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/15.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHMVPlayViewController.h"
#import "VOHMVPlayView.h"
@interface VOHMVPlayViewController ()
@property(nonatomic, strong)VOHMVPlayView *playView;

@end

@implementation VOHMVPlayViewController


-(void)loadView{
    self.playView = [[VOHMVPlayView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.view = self.playView;
    __weak typeof(self)weakSelf = self;
    self.playView.backbtn.block = ^(VOHButton *btn){
        [weakSelf.navigationController popToRootViewControllerAnimated:YES];
    };
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
     //隐藏导航栏
    [self.navigationController setNavigationBarHidden:YES animated:YES];
}

-(void)viewWillDisappear:(BOOL)animated{
    self.navigationController.navigationBarHidden = NO;
    [super viewWillDisappear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    }

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}

-(BOOL)hidesBottomBarWhenPushed{
    return YES;
}



@end
